<?php

namespace App\Models\SystemManagement;

use App\Models\CommonModel;
use App\Models\Constant\Fields;
use Illuminate\Database\Eloquent\Model;

class UserClasses extends CommonModel
{
    protected $table = 'user_classes';

    protected $hidden = ['deleted_at','created_at','updated_at'];

    function classes(){
        return $this->belongsTo(self::$SYSTEM.'\Banci',Fields::CLASS_ID,Fields::ID)
            ->select('id','name','work_time');
    }
}
